package com.utility.project.controller;

import com.utility.project.common.base.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import com.utility.project.service.IYsMemberConfigService;
import com.utility.project.entity.YsMemberConfig;

/**
 * @author yangzhiguo
 * @date 2024-06-18
 * @description 会员价格配置
 */
@Api(tags = "会员价格配置")
@RestController
@RequestMapping("/ysMemberConfig")
public class YsMemberConfigController {

    @Resource
    private IYsMemberConfigService ysMemberConfigService;

    @ApiOperation("通过ID查询会员价格配置数据")
    @GetMapping("/queryById")
    public R queryById(@RequestParam("id")Long id){
        return R.ok(ysMemberConfigService.getById(id));
    }
    
}
